import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ERuneEffectType
    
    export  class ERuneEffectType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): ERuneEffectType
        {
            return new ERuneEffectType(arg1);
        }

        public static __read(arg1: SerializeStream): ERuneEffectType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 34) 
            {
                throw new MarshalException();
            }
            return ERuneEffectType.convert(loc1);
        }

        public static /* const */_ERuneEffectDistance: int=1;

        public static /* const */_ERuneEffectRange: int=2;

        public static /* const */_ERuneEffectTriggleRate: int=3;

        public static /* const */_ERuneEffectHitRate: int=4;

        public static /* const */_ERuneEffectUseTime: int=5;

        public static /* const */_ERuneEffectValue: int=6;

        public static /* const */_ERuneEffectAddStateRate: int=7;

        public static /* const */_ERuneEffectCoolDown: int=8;

        public static /* const */_ERuneEffectExtraState: int=9;

        public static /* const */_ERuneEffectClearCd: int=10;

        public static /* const */_ERuneEffectStateTriggleRate: int=20;

        public static /* const */_ERuneEffectStateEffect: int=21;

        public static /* const */_ERuneEffectStateLastTime: int=22;

        public static /* const */_ERuneEffectStateMaxEffect: int=23;

        public static /* const */_ERuneEffectStateAddSkill: int=24;

        public static /* const */_ERuneEffectSelfAddState: int=30;

        public static /* const */_ERuneEffectSelfDrugEffect: int=31;

        public static /* const */_ERuneEffectSelfDrugCD: int=32;

        public static /* const */_ERuneEffectSelfStateTime: int=33;

        public /* var */__value: int;
    }
